package org.MyToolsProject.algorithm.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtil {
    // 格式化日期时间
    final static SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    final static Date CURRENT_DATE = new Date();
    public static String format(long time){
        CURRENT_DATE.setTime(time);
        return SDF.format(CURRENT_DATE);
    }
}
